package com.yngrp.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *  @Description: 工单实体
 *  @author  SLH
 *  @date  20160716
 */
@Entity
@Table(name = "yl_work_order")
public class WorkOrder implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	/** 主键 **/
	private Long id;
	
	/** 客户编号 **/
	private String customerNo;
	
	/** 客户名称 **/
	private String customerName;
	
	/** 联系电话2 **/
	private String contactPhone2;
	
	/** 联系人 **/
	private String contactMan;
	
	/** 联系电话 **/
	private String contactPhone;
	
	/** 联系地址 **/
	private String contactAddress;
	
	/** 工单类型 **/
	private String woType;
	
	/** 工单类型描述 **/
	private String woTypeDesc;

	/** 95598工单编号 **/
	private String wo95598Id;
	
	/** 工单办结截止时间 **/
	private String overTime;	
	
	/** 受理内容 **/
	private String woContent;
	
	/** 工单状态 **/
	private String woState;
	
	/** 工单状态描述 **/
	private String woStateDesc;
	
	/** 受理人ID **/
	private String createBy;
	
	/** 受理人姓名 **/
	private String createRealname;
	
	/** 处理人姓名 **/
	private String doUsername;
	
	/** 受理部门ID **/
	private String createDepartmentid;
	
	/** 受理部门名称 **/
	private String createDepartmentname;
	
	/** 创建时间 **/
	private Date createDatetime;
	
	/** 受理时间 **/
	private String acDatetime;
	
	/** 工单来源 **/
	private String woSrc;
	
	/** 工单来源描述 **/
	private String woSrcDesc;
	
	/** 受理意见 **/
	private String woOpinion;
	
	/** 主办部门编号 **/
	private String zOrgIds;
	
	/** 协办部门编号 **/
	private String xOrgIds;
	
	/** 待办工单编号 **/
	private String todoId;
	
	/** 是否选中 **/
	private boolean checked;
	
	/** 关联工单 **/
	private String woAssos;
	
	/** 保存状态 1：已提交 0：临时保存 **/
	private String saveState;
	
	/** 工单处理信息ID **/
	private String processId;
	
	/** 处理类型 **/
	private String processType;
	
	/** 处理户号 **/
	private String processCustomerNo;
	
	/** 责任人 **/
	private String responer;
	
	/** 是否考核 */
	private String isCheck;


	@Id
	@GeneratedValue (strategy = GenerationType.IDENTITY) 
	@Column(name ="ID",nullable=false,length=10)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name ="customer_no")
	public String getCustomerNo() {
		return customerNo;
	}

	public void setCustomerNo(String customerNo) {
		this.customerNo = customerNo;
	}

	@Column(name ="customer_name")
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

 
	@Column(name ="contact_phone2")
	public String getContactPhone2() {
		return contactPhone2;
	}

	public void setContactPhone2(String contactPhone2) {
		this.contactPhone2 = contactPhone2;
	}

	@Column(name ="contact_man")
	public String getContactMan() {
		return contactMan;
	}

	public void setContactMan(String contactMan) {
		this.contactMan = contactMan;
	}
	
	@Column(name ="contact_phone")
	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	@Column(name ="contact_address")
	public String getContactAddress() {
		return contactAddress;
	}

	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	@Column(name ="wo_type")
	public String getWoType() {
		return woType;
	}

	public void setWoType(String woType) {
		this.woType = woType;
	}
	
	@Column(name ="wo_type_desc")
	public String getWoTypeDesc() {
		return woTypeDesc;
	}

	public void setWoTypeDesc(String woTypeDesc) {
		this.woTypeDesc = woTypeDesc;
	}
	
	@Column(name ="wo_95598_id")
	public String getWo95598Id() {
		return wo95598Id;
	}

	public void setWo95598Id(String wo95598Id) {
		this.wo95598Id = wo95598Id;
	}
	
	@Column(name ="overtime")
	public String getOverTime() {
		return overTime;
	}

	public void setOverTime(String overTime) {
		this.overTime = overTime;
	}

	@Column(name ="wo_content")
	public String getWoContent() {
		return woContent;
	}

	public void setWoContent(String woContent) {
		this.woContent = woContent;
	}

	@Column(name ="wo_state")
	public String getWoState() {
		return woState;
	}

	public void setWoState(String woState) {
		this.woState = woState;
	}
	
	@Column(name ="wo_state_desc")
	public String getWoStateDesc() {
		return woStateDesc;
	}

	public void setWoStateDesc(String woStateDesc) {
		this.woStateDesc = woStateDesc;
	}

	@Column(name ="create_by")
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name ="create_realname")
	public String getCreateRealname() {
		return createRealname;
	}

	public void setCreateRealname(String createRealname) {
		this.createRealname = createRealname;
	}

	@Column(name ="do_username")
	public String getDoUsername() {
		return doUsername;
	}

	public void setDoUsername(String doUsername) {
		this.doUsername = doUsername;
	}

	@Column(name ="create_departmentid")
	public String getCreateDepartmentid() {
		return createDepartmentid;
	}

	public void setCreateDepartmentid(String createDepartmentid) {
		this.createDepartmentid = createDepartmentid;
	}

	@Column(name ="create_departmentname")
	public String getCreateDepartmentname() {
		return createDepartmentname;
	}

	public void setCreateDepartmentname(String createDepartmentname) {
		this.createDepartmentname = createDepartmentname;
	}

	@Column(name ="create_datetime")
	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}
	
	@Column(name ="ac_datetime")
	public String getAcDatetime() {
		return acDatetime;
	}

	public void setAcDatetime(String acDatetime) {
		this.acDatetime = acDatetime;
	}

	@Column(name ="wo_src")
    public String getWoSrc() {
		return woSrc;
	}

	public void setWoSrc(String woSrc) {
		this.woSrc = woSrc;
	}

	@Column(name ="wo_src_desc")
	public String getWoSrcDesc() {
		return woSrcDesc;
	}

	public void setWoSrcDesc(String woSrcDesc) {
		this.woSrcDesc = woSrcDesc;
	}

	@Transient
	public String getWoOpinion() {
		return woOpinion;
	}

	public void setWoOpinion(String woOpinion) {
		this.woOpinion = woOpinion;
	}

	@Transient
	public String getzOrgIds() {
		return zOrgIds;
	}

	public void setzOrgIds(String zOrgIds) {
		this.zOrgIds = zOrgIds;
	}

	@Transient
	public String getxOrgIds() {
		return xOrgIds;
	}

	public void setxOrgIds(String xOrgIds) {
		this.xOrgIds = xOrgIds;
	}

	@Transient
	public String getTodoId() {
		return todoId;
	}

	public void setTodoId(String todoId) {
		this.todoId = todoId;
	}

	@Transient
	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	@Transient
	public String getWoAssos() {
		return woAssos;
	}

	public void setWoAssos(String woAssos) {
		this.woAssos = woAssos;
	}

	@Transient
	public String getSaveState() {
		return saveState;
	}

	public void setSaveState(String saveState) {
		this.saveState = saveState;
	}

	@Transient
	public String getProcessId() {
		return processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}

	@Transient
	public String getProcessType() {
		return processType;
	}

	public void setProcessType(String processType) {
		this.processType = processType;
	}

	@Transient
	public String getProcessCustomerNo() {
		return processCustomerNo;
	}

	public void setProcessCustomerNo(String processCustomerNo) {
		this.processCustomerNo = processCustomerNo;
	}

	@Transient
	public String getResponer() {
		return responer;
	}

	public void setResponer(String responer) {
		this.responer = responer;
	}

	@Transient
	public String getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(String isCheck) {
		this.isCheck = isCheck;
	}
	
}
